package ru.yermak.bookkeeping.common;

import org.springframework.stereotype.Component;

/**
 * User: harrier
 * Date: Aug 10, 2008
 */
@Component
public class BookkeeperState {
    private Integer userId;
    private Integer groupId;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    public boolean isValid() {
        return userId != null && groupId != null;
    }
}
